From 5e5a6aa9bec5ae555976dfea75c3339a98ed5b6d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 8 May 2008 11:20:04 +0100 Subject: [PATCH] Xend: Fix handling of vnc params. Signed-off-by: Yosuke Iwamatsu --- tools/python/xen/xend/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 099cd32ee9..46517c7ac3 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -294,11 +294,11 @@ class ImageHandler: vnclisten = vnc_config.get('vnclisten', XendOptions.instance().get_vnclisten_address()) - vncdisplay = vnc_config.get('vncdisplay', 0) + vncdisplay = int(vnc_config.get('vncdisplay', 0)) ret.append('-vnc') ret.append("%s:%s%s" % (vnclisten, vncdisplay, vncopts)) - if vnc_config.get('vncunused', 0): + if int(vnc_config.get('vncunused', 1)) != 0: ret.append('-vncunused') elif has_sdl: -- 2.30.2